• Special characters:
    double quote """ (\q only for AmigaE compatibility)
    Code
    Description
    \\backslash "\"
    \a or ''apostrophe "'" (\a only for AmigaE compatibility)
    \breturn (ascii 13)
    \eescape (ascii 27)
    \nlinefeed (ascii 10)
    \q or "
    \ttabulator (ascii 9)
    \vvertical tabulator (ascii 11)
    \!bell (ascii 7)
    \0zero byte (ascii 0), end of string
    \j#single character where # is number (0-255) of character you want.
    \xextended formating, see below


  • Formating characters:
    Code
    Description
    \ddecimal number
    \hhexadecimal number
    \csingle character
    \uunsigned decimal number
    \sstring
    \lused before \s, \h, \d, \u, means left justified
    \rused before \s, \h, \d, \u, means right justified
    \zused before \h, \d, \u with field definition (see below) creates leading zeros


    You can ofcourse use c-like string format, but the string must start and stop with ' (apostrophe), not with " (double quote)

  • Field definition in strings (usable only after \s, \d, \h and \u):
    [#] - where # is number of characters to be used for a formating character

  • Extended formating:
    Each extension starts with \x, this must be followed by one of following characters:
    Extension
    Description
    tfull actual time (hh:mm:ss)
    dfull actual date (yy-mmm-dd)
    sactual second
    mactual minute
    hactual hour
    Dnactual day number
    DNactual day number (2 digits)
    Dsactual day short name (like Mon, Tue, ...)
    Dfactual day full name (like Monday, Tuesday, ...)
    Mnactual month number
    MNactual month number (2 digits)
    Msactual month short name (like Jan, Feb, ...)
    yactual year (4 digits)
    Yactial year (2 digits)
    vcompiler version string
    Vcompiler version without '$VER: ' string
    ccompiling machine cpu (like MC68LC040)
    Cshorter compiling machine cpu (like LC040)
    fcompiling machine fpu (like MC68882 or none)
    Fshorter compiling machine fpu (like 882)


  • Multiple strings:
    Single string starts with one apostrophe and ends also with one apostrophe. Multiple strings are used in the same way as single strings, but You can separate them by single + (plus) operator. This allows You to write longer strings to more lines. Single string length is limited to 1024 characters. Multiple string can contain arbitrary count of single strings.

  • Examples of single and multiple strings:
      'bla'
      'Hello world!\n'
    
      'My address:\n'+
      'Amforová 1930\n'+
      'Prague, 15500\n'+
      'Czech Repiblic\n'
    
  • Examples of formatting strings (use them with PrintF(), StringF() and similar functions):
      PrintF('a+b=\d\n',a+b)
      PrintF('file ''\s'' not found.\n',filename)
      PrintF('Address is $\z\h[8]\n',adr)
    

  • Examples of extended formatting strings:
      'Date: \xDn.\Mn\xyn' will produce sth like 'Date: 4.2.2000'
    

  • Examples of \jx using:
      'Hello\j10'           // is the same as 'Hello\n'
      'Test \j12345'        // is the same as 'Test {45'
      '\j999'               // is the same as 'c9'